FROM nginx
RUN echo "deb http://mirrors.aliyun.com/debian/ buster main non-free contrib" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y supervisor curl 
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY init.sh /opt/init.sh
COPY page.html /usr/share/nginx/html/
RUN chmod 755 /opt/init.sh
CMD ["/usr/bin/supervisord"]
